Package com.cisco.pt.ipc.sim.impl
Class DeviceFactoryImpl
java.lang.Object
com.cisco.pt.ipc.impl.IPCObjectImpl
com.cisco.pt.ipc.sim.impl.DeviceFactoryImpl
- All Implemented Interfaces:
IPCObject,DeviceFactory
Information provided by the PKI file:
\class DeviceFactory
\brief The factory of devices.
- Author:
- Auto-generated
-
Field Summary
Fields inherited from class com.cisco.pt.ipc.impl.IPCObjectImpl
accessMessage, ipcFactory, packetTracerSession -
Constructor Summary
ConstructorsConstructorDescriptionDeviceFactoryImpl(IPCFactory ipcFactory, PacketTracerSession packetTracerSession, IPCMessageLTV accessMessage) -
Method Summary
Modifier and TypeMethodDescriptiongetAvailableDeviceAt(int index) Information provided by the PKI file:intInformation provided by the PKI file:getAvailableDeviceForTypeAt(DeviceType type, int index) Information provided by the PKI file:intInformation provided by the PKI file:getDescriptor(DeviceType type, String model) Information provided by the PKI file:Methods inherited from class com.cisco.pt.ipc.impl.IPCObjectImpl
getAccessMessage, getClassName, getFactory, getObjectUUID, getPacketTracerSession, sendMessage, sendMessageWithReturn, translateToCommandStatusStringPairMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.cisco.pt.ipc.IPCObject
getAccessMessage, getClassName, getFactory, getObjectUUID, getPacketTracerSession
-
Constructor Details
-
DeviceFactoryImpl
public DeviceFactoryImpl(IPCFactory ipcFactory, PacketTracerSession packetTracerSession, IPCMessageLTV accessMessage)
-
-
Method Details
-
getDescriptor
Information provided by the PKI file:
\brief Returns the Descriptor of the device \param type, DeviceType \return DeviceType, the type of this device. Device types: eRouter = 0, eSwitch = 1, eCloud = 2, eBridge = 3, eHub = 4, eRepeater = 5, eCoAxialSplitter = 6, eAccessPoint = 7, ePc = 8, eServer = 9, ePrinter = 10, eWirelessRouter = 11, eIpPhone = 12, eDslModem = 13, eCableModem = 14, eRemoteNetwork = 15, eMultiLayerSwitch = 16, eLaptop = 17, eTabletPC = 18, ePda = 19, eWirelessEndDevice = 20, eWiredEndDevice = 21, eTV = 22, eHomeVoip = 23, eAnalogPhone = 24, eMultiUser = 25, eASA = 26, eIoE = 27, eHomeGateway = 28, eCellTower = 29, eCentralOfficeServer = 30, eWirelessLanController = 31, \param model, the device model in string format- Specified by:
getDescriptorin interfaceDeviceFactory- Parameters:
type- Takes in a parameter of typemodel- Takes in a parameter of model- Returns:
- DeviceDescriptor Returns a DeviceDescriptor
-
getAvailableDeviceCount
public int getAvailableDeviceCount()Information provided by the PKI file:
\brief Returns the number of available device type \return int, number of available device type- Specified by:
getAvailableDeviceCountin interfaceDeviceFactory- Returns:
- int Returns a int
-
getAvailableDeviceAt
Information provided by the PKI file:
\brief Returns the available device descriptorat a specified index \param index, a specified index \return DeviceDescriptor, DeviceDescriptor object- Specified by:
getAvailableDeviceAtin interfaceDeviceFactory- Parameters:
index- Takes in a parameter of index- Returns:
- DeviceDescriptor Returns a DeviceDescriptor
-
getAvailableDeviceForTypeCount
Information provided by the PKI file:
\brief Returns the available device model for a specified type \param type, DeviceType - see documentation for function getDescriptor() above \return int, the available device model for a specified type- Specified by:
getAvailableDeviceForTypeCountin interfaceDeviceFactory- Parameters:
type- Takes in a parameter of type- Returns:
- int Returns a int
-
getAvailableDeviceForTypeAt
Information provided by the PKI file:
\brief Returns the available device descriptor of a specified type at a specified index \param type, DeviceType - see documentation for function getDescriptor() above \param index, a specified index \return DeviceDescriptor, DeviceDescriptor object- Specified by:
getAvailableDeviceForTypeAtin interfaceDeviceFactory- Parameters:
type- Takes in a parameter of typeindex- Takes in a parameter of index- Returns:
- DeviceDescriptor Returns a DeviceDescriptor
-